{
	name:"CentralLine",
	tool:"./paint_tool/lines/point-line.shape",
	onClick(pos,e,meta){
		let path = this.queryLines(pos)

		if(path){
			this.onCommit(path,pos)
		}else{
			this.toast("请选择任意目标线段")
		}
	},
	onCommit(path,pos){
		let meta = this.getLM(path,pos)
		if(!meta.sp){
			this.toast("请选择任意目标线段")
			return
		}
		let cp = Math.centralPos(meta,meta.sp)
			cp.a = Math.formatAngle(meta.a+Math.PI/2)
		this.step.push(cp)
		this.commit(Action.PointLine,this.name)
	}
}